<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title><s:text name="title.score"/></title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<style type="text/css">
  body {
	text-align: center;
	line-height:42px;
	font-family:宋体;
	font-weight: bold;
	color:#FFFFFF;
	background-color: #000000;
}
.temp {
	margin: 0 auto;
	width: 1160px;
	border: 0px solid;
	text-align: center;
}

.select{

text-align: right;
}


 </style>
  
  
  <body>
    	<jsp:include page="head.jsp"></jsp:include>
    	<div class="temp">
 
 
    	
    	  	<div  class="select">
    	  	<a href="selectcountscore.html" >刷榜次数排名</a>
    	  	&nbsp;&nbsp;&nbsp;
    	  	排序方式: 
    	  	<select onchange="window.location=this.value;">
    	  	<option>请选择排序方式</option>
    	  	
    	  	 <option value="playscore.html?select=1">根据歌曲难度由高到低排序</option>
    	  	  <option value="playscore.html?select=2">根据歌曲难度由低到高排序</option>
    	  	</select> 
    	  	
    	  	
    	  	 </div>
    	  	
    	  	
		<table style="table-layout:fixed;">
			<tr>
				<td>歌曲封面:</td>
				<td>歌曲名:</td>
				<td>歌曲等级:</td>
				<td>昵称:</td>
				<td>难度:</td>
				<td>速度:</td>
				<td>COOL:</td>
				<td>GOOD:</td>
				<td>BAD:</td>
				<td>MISS:</td>
				<td>连击:</td>
				<td>JAM:</td>
				<td>完成度:</td>
				<td>分数:</td>
			</tr>
			<s:iterator value="pageBean.list" id="score">
			<tr>
				<td><img src="./songimg/<s:property value="#score.o2ranksongs.mid" />.jpg" width="80" height="60" /></td>
				<td><a href="selectmusicinfo.html?mid=<s:property value="#score.o2ranksongs.mid" />"><s:property value="#score.mname" /></a></td>
				<td>
					<s:if test="#score.mhard=='高级'">
						<s:property value="#score.o2ranksongs.hardlevel" />
					</s:if>
					<s:elseif test="#score.mhard=='中级'">
						<s:property value="#score.o2ranksongs.normallevel" />
					</s:elseif>
					<s:elseif test="#score.mhard=='初级'">
						<s:property value="#score.o2ranksongs.easylevel" />
					</s:elseif>
				 </td>
				<td> <a href="playerinfo.html?uid=<s:property value="#score.uid" />"> <s:property value="#score.nickname" /></a></td>
				<td><s:property value="#score.mhard" /></td>
				<td>X<s:property value="#score.pspeed" /></td>
				<td><s:property value="#score.cool" /></td>
				<td><s:property value="#score.good" /></td>
				<td><s:property value="#score.bad" /></td>
				<td><s:property value="#score.miss" /></td>
				<td><s:property value="#score.combo" /></td>
				<td><s:property value="#score.jam" /></td>
				<td><s:property value="#score.finish" />%</td>
				<td><s:property value="#score.score" /></td>
			</tr>
			</s:iterator>
		</table>
		</div>
    
    	<br/>
    	共<s:property value="pageBean.allRow"/> 条记录
    	共<s:property value="pageBean.totalPage"/>页
    	当前第<s:property value="pageBean.currentPage"/>页
		<br/> 
		<s:if test="%{pageBean.currentPage == 1}">
 		第一页 上一页
 		</s:if>
    	<s:else>
    	<a href="playscore.html?page=1">第一页</a>
    	<a href="playscore.html?select=<s:property value="select"/>&page=<s:property value="%{pageBean.currentPage-1}"/>">上一页</a>
    	</s:else>
    	<s:if test="%{pageBean.currentPage != pageBean.totalPage}">
    	<a href="playscore.html?select=<s:property value="select"/>&page=<s:property value="%{pageBean.currentPage+1}"/>">下一页</a>
    	<a href="playscore.html?select=<s:property value="select"/>&page=<s:property value="pageBean.totalPage"/>">最后一页</a>
		</s:if> 
		<s:else> 
		下一页 最后一页
		</s:else>
	
  		<jsp:include page="foot.jsp"></jsp:include>
  </body>
</html>
